// 环境配置 - 使用条件编译
let config = {}

// #ifdef H5
// H5 平台特定配置
if (process.env.NODE_ENV === 'development') {
    config = {
        baseUrl: 'https://book.weichit.cn',
        version: 'v2.3.0',
        apiPath: '/app-api',
        staticUrl: 'https://football-notes.oss-cn-beijing.aliyuncs.com/football-notes',
        tenantId: '1',
        websocketPath: '/infra/ws',
        gpsUrl: 'https://friend.fsan-cloud.com/nettygps',
        amapKey: '695a163d530281d2cafbcf29a7774315',
        uploadType: 'server',
        mpLiveOn: '0'
    }
} else {
    config = {
        baseUrl: 'https://book.weichit.cn',
        version: 'v2.3.0',
        apiPath: '/app-api',
        staticUrl: 'https://football-notes.oss-cn-beijing.aliyuncs.com/football-notes',
        tenantId: '1',
        websocketPath: '/infra/ws',
        gpsUrl: 'https://friend.fsan-cloud.com/nettygps',
        amapKey: '695a163d530281d2cafbcf29a7774315',
        uploadType: 'server',
        mpLiveOn: '0'
    }
}
// #endif

// #ifndef H5
// 非H5平台（小程序、App等）
config = {
    baseUrl: 'https://book.weichit.cn',
    version: 'v2.3.0',
    apiPath: '/app-api',
    staticUrl: 'https://football-notes.oss-cn-beijing.aliyuncs.com/football-notes',
    tenantId: '1',
    websocketPath: '/infra/ws',
    gpsUrl: 'https://friend.fsan-cloud.com/nettygps',
    amapKey: '695a163d530281d2cafbcf29a7774315',
    uploadType: 'server',
    mpLiveOn: '0'
}
// #endif

export const {
    baseUrl,
    version,
    apiPath,
    staticUrl,
    tenantId,
    websocketPath,
    gpsUrl,
    amapKey,
    uploadType,
    mpLiveOn
} = config

export default config